package com.landmesure.core;

import java.io.Serializable;

public class TestMessage implements Serializable {
    private int ecode;
    private String name;
    private String unit;
    private String value;

    public int getEcode() {
        return ecode;
    }

    public void setEcode(int ecode) {
        this.ecode = ecode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public TestMessage(int ecode, String name, String unit, String value) {
        this.ecode = ecode;
        this.name = name;
        this.unit = unit;
        this.value = value;
    }

    @Override
    public String toString() {
        return   name +":"+ value + unit + "\n";
    }
}
